home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / NL.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  50 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef nl
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_nl = "$Header: c:/curses/portable/RCS/nl.c%v 2.0 1992/11/15 03:29:04 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   nl() - enable/disable newline control
  15.  
  16.   X/Open Description:  nl(), nonl()
  17.        These functions control whether a newline is translated into a
  18.        carriage return and a line-feed on output, and wether a return
  19.        is translated into a newline on input.  Initially, the translations
  20.        do occur.  By disabling these translations, curses is able to
  21.        make better use of the line-feed capability, resulting in faster
  22.        cursor motion.
  23.  
  24.        NOTE: nl() and nonl() are macros.
  25.  
  26.   PDCurses Description:
  27.        This module is not an executable, it is merely a documentation
  28.        place holder.  This module will only execute code if the user
  29.        #undefs nl.
  30.  
  31.   X/Open Return Value:
  32.        The nl() and nonl() functions return OK on success and ERR on error.
  33.  
  34.   X/Open Errors:
  35.        No errors are defined for this function.
  36.  
  37.   Portability:
  38.        PDCurses        int mvprintw( int y, int x, char* fmt, ... );
  39.        X/Open Dec '88  int mvprintw( int y, int x, char* fmt, ... );
  40.        BSD Curses      int mvprintw( int y, int x, char* fmt, ... );
  41.        SYS V Curses    int mvprintw( int y, int x, char* fmt, ... );
  42.  
  43. **man-end**********************************************************************/
  44.  
  45. int    nl(void)
  46. {
  47.        _cursvar.autocr = TRUE;
  48.        return( OK );
  49. }
  50.